//    Copyright (C) Kherty.  All rights reserved.
using OpenLS.Core;

namespace OpenLS.Drawing
{
    internal class SetColorSchemeUndoUnit : IUndoUnit
    {
        private readonly Theme owner;
        private readonly ColorScheme scheme;

        public SetColorSchemeUndoUnit(Theme owner, ColorScheme scheme)
        {
            this.owner = owner;
            this.scheme = scheme;
        }

        #region IUndoUnit Members

        public void Do()
        {
            owner.ColorScheme = scheme;
        }

        public bool Merge(IUndoUnit unit)
        {
            return false;
        }

        #endregion
    }
}